<div class="add fleft gallery clearfix">
  <div class="add_img a-e-i"><img src="__ROOT__{:get_cover($bg['bgpic'],$field = path)}" /></div>
  <div class="container">
    <div class="form-group search_li">
        <form action="{:U('Property/search')}" method="post">
      <input name='title' type="text" class="form-control" placeholder="最新樓盤">
      <button type="submit" class="btn btn-default">搜索<i class="fa fa-search search_ico"></i></button>
        </form>
    </div>
    <div class="estate_li">
       <div class="estate_title">快速搜查房產</div>
      <div class="estate_select estate_select_1">
          <form id="search" action="{:U('Property/searchs')}" method="post">
        <p class="select_title"><span>所在地</span><i class="fa fa-angle-down search_ico"></i></p>
        <input type="hidden" name="add" id='place_num' value=""/>
        <ul class="search">
       
          <volist name="search1" id="data1">
                 <li name="add" onClick="$('#place_num').val('{$data1}')">{$data1}</li>  
          </volist>
        </ul>
      </div>
      <div class="estate_select">

        <p class="select_title"><span>物業類型</span><i class="fa fa-angle-down search_ico"></i></p>
        <input type="hidden" name="housestype" id='type_num' value=""/>
        <ul class="search">
  
          <volist name="search2" id="data1">
                 <li name="'housestype" onClick="$('#type_num').val('{$data1}')">{$data1}</li>  
          </volist>
        </ul>
      </div>
      <div class="estate_select">
        <p class="select_title"><span>租/售</span><i class="fa fa-angle-down search_ico"></i></p>
        <input type="hidden" name="sell" id='rental_num' value="3"/>
        <ul class="search">
     
          <li  onClick="$('#rental_num').val('2')">出租</li>
             <li  onClick="$('#rental_num').val('1')">出售</li>
        </ul>
      </div>
      <div class="estate_select estate_select_4">
        <p class="select_title"><span>價格範圍</span><i class="fa fa-angle-down search_ico"></i></p>
        <input type="hidden" name="houses_prices" id='price_num' value="0-99999999"/>
        <ul class="search">

           <volist name="search4" id="data">
                 <li name="houses_prices" onClick="$('#price_num').val('{$data[0]}-{$data[1]}')">{$data[0]}-{$data[1]}</li>  
          </volist>
        </ul>
      </from>
      </div>
    </div>
  </div>
</div>
<!--add end--> 

<!--news-->

 <div class="products_top container">
      <div class="top_line"></div>
      <div class="top_title">
      <i class="fa products_top_ico"></i>熱賣樓盤
      </div>
      <div class="top_line"></div>
      <a href="{:U('Property/hot')}">更多>></a> </div>
<div class="news">
  <div class="container">
    <div class="col-md-12">
       
       <div class="swiper-container swiper1">

  <!-- Carousel items -->
  <div class="swiper-wrapper">
      <foreach name='listhot' item='datas'>
          <if condition='$key eq 0'>
    <div class="swiper-slide">
      <div class="col-md-8 c-m-i c-e-i"><a href="{:U('Property/detail','id='.$datas['id'])}"><img  src="__ROOT__{:get_cover($datas['photo'],$field = path)}" /></a> </div>
       <div class="col-md-4"><a href="{:U('Property/detail','id='.$datas['id'])}">
      <h3>{$datas['title']}</h3>
      </a>
      <p> 物業類型：{$datas['housestype']}<br />
        裝修標準：{$datas['attribute']}<br />
        特色描述：{$datas['description']} </p>
      <a href="{:U('Property/detail','id='.$datas['id'])}" class="products_btn">
      <input type="button" value="了解更多">
      </a> </div></div>
          <else/>
            <div class="swiper-slide">
      <div class="col-md-8 c-m-i c-e-i"><a href="__ROOT__/Home/Property"><img  src="__ROOT__{:get_cover($datas['photo'],$field = path)}" /></a> </div>
       <div class="col-md-4">   <a href="{:U('Property/detail','id='.$datas['id'])}">
      <h3>{$datas['title']}</h3>
      </a>
      <p> 物業類型：{$datas['housestype']}<br />
        裝修標準：{$datas['attribute']}<br />
        特色描述：{$datas['description']} </p>
      <a href="{:U('Property/detail','id='.$datas['id'])}" class="products_btn">
      <input type="button" value="了解更多">
      </a> </div></div>
              </if>
</foreach>
  </div>
  <!-- Carousel nav -->
   <div class="swiper-button-prev swiper-button-prev1"><i class="fa fa-angle-left c-s-i"></i></div>
        <div class="swiper-button-next swiper-button-next1"><i class="fa fa-angle-right c-s-i"></i></div>
</div>
    </div>
   
  </div>
</div>
<!--products-->
<div class="products fleft gallery clearfix">
  <div class="container">
    <div class="products_top">
      <div class="top_line"></div>
      <div class="top_title">
        <i class="fa products_top_ico"></i>
        最新樓盤
      </div>
      <div class="top_line"></div>
      <a href="{:U('Property/Index')}">更多>></a> </div>
      <volist name="list" id="data" offset="0" length='4'>
    <div class="col-md-3 col-sm-3 col-xs-12">
      <div class="products_img col_img c-e-i"> <a href="#"><img src="__ROOT__{:get_cover($data['photo'],$field = path)}" /></a>
        <div class="hover_img"><a href="__ROOT__{:get_cover($data['photo'],$field = path)}"  rel="prettyPhoto[gallery2]"><i class="fa fa-picture-o img_ico"></i></a></div>
      </div>
      <a href="#">
      <h4>{$data['title']}</h4>
      </a>
      <p>{$data['title2']}</p>
      <a href="{:U('Property/detail','id='.$data['id'])}" class="products_btn">
      <input type="button" value="了解更多">
      </a> </div>
   </volist>
  </div>
</div>
<!--products end--> 
<!--searvices-->
<div class="products_top container">
      <div class="top_line"></div>
      <div class="top_title">
      <i class="fa products_top_ico"></i>市場動態
      </div>
      <div class="top_line"></div>
      <a href="{:U('News/Index')}">更多&gt;&gt;</a> </div>
<div class="searvice fleft gallery clearfix">

  <div class="container">
 
 
    <div class="col-md-8">
     
    <div class="col-sevice">
        <volist name="presell" id="data">
      <div class="searvice_content">
        <div class="col-md-12">{$data['title']}</div>
        <div class="col-md-4 col-sm-4 col_img c-e-i"><img src="__ROOT__{:get_cover($data['ImageS'],$field = path)}" />
          <div class="hover_img"><a href="__ROOT__{:get_cover($data['ImageS'],$field = path)}"  rel="prettyPhoto[gallery2]"><i class="fa fa-picture-o img_ico"></i></a>
            <h4></h4>
          </div>
        </div>
        <div class="col-md-8 col-sm-8"> <a href="#" class="searvice_title_content"> {$data['title2']}</a>
          <p>{$data['description']}</p>
          <a href="{:U('News/Detail','id='.$data['id'])}" class="products_btn">
          <input type="button" value="了解更多">
          </a> </div>
      </div>
     </volist>
     
   
      
     
      </div>
        <!--page_btn--> 
 <div class="page col-md-12">
   
   {$_page}
    </div>

<!--page_btn end--> 
   </div>
    <div class="col-md-3 col-xs-12 col-md-offset-1">
      <div class="searvice_right_img">
          <volist name='list3' id='vo'>
          <img src="__ROOT__{:get_cover($vo['cover_id'],$field = path)}" />
          </volist>
      </div>
      <div class="searvice_right_content"> <a>澳門房聞動態</a>
        <ul>
            <volist name='presell' id='vo'>
                <a href="{:U('News/Detail','id='.$data['id'])}"><li>{$vo['title']}</li></a>
            </volist>
        </ul>
      </div>
    </div>
  </div>
</div>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script>
$(function(){
    
   $(document).on('click','.search li',function(){
   $('#search').submit();    
   })
    
})  
</script>

